package com.dragon.modules.yuegou.query.product;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.product.GrouponInfoEntity;
import com.dragon.modules.yuegou.enums.product.GrouponInfoCheckStatus;
import com.dragon.modules.yuegou.enums.product.GrouponInfoReleaseType;
import com.dragon.modules.yuegou.enums.product.GrouponInfoStatus;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 拼团活动信息表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2020-08-31 16:15:29
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class GrouponInfoQuery extends GrouponInfoEntity implements Query<GrouponInfoEntity> {

    /** 主键ID查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 活动名称查询条件 */
	@JsonUnwrapped(prefix = "name")
	private Condition<String> nameCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 商户ID查询条件 */
	@JsonUnwrapped(prefix = "merchantId")
	private Condition<String> merchantIdCondition;

    /** [枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件 */
	@JsonUnwrapped(prefix = "releaseType")
	private Condition<GrouponInfoReleaseType> releaseTypeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "spuId")
	private Condition<String> spuIdCondition;

    /** 拼团skuID查询条件 */
	@JsonUnwrapped(prefix = "skuId")
	private Condition<String> skuIdCondition;

    /** 活动主图片查询条件 */
	@JsonUnwrapped(prefix = "imgs")
	private Condition<String> imgsCondition;

    /** 拼团价查询条件 */
	@JsonUnwrapped(prefix = "grouponPrice")
	private Condition<BigDecimal> grouponPriceCondition;

    /** 成团人数查询条件 */
	@JsonUnwrapped(prefix = "grouponNum")
	private Condition<Integer> grouponNumCondition;

    /** 活动库存查询条件 */
	@JsonUnwrapped(prefix = "grouponStock")
	private Condition<Integer> grouponStockCondition;

    /** 最大购买数量查询条件 */
	@JsonUnwrapped(prefix = "maxBuy")
	private Condition<Integer> maxBuyCondition;

    /** 展示开始时间查询条件 */
	@JsonUnwrapped(prefix = "viewBeginTime")
	private Condition<LocalDateTime> viewBeginTimeCondition;

    /** 展示结束时间查询条件 */
	@JsonUnwrapped(prefix = "viewEndTime")
	private Condition<LocalDateTime> viewEndTimeCondition;

    /** 开始日期查询条件 */
	@JsonUnwrapped(prefix = "beginDate")
	private Condition<LocalDateTime> beginDateCondition;

    /** 结束日期查询条件 */
	@JsonUnwrapped(prefix = "endDate")
	private Condition<LocalDateTime> endDateCondition;

    /** 是否原价购买:0:否 1:是查询条件 */
	@JsonUnwrapped(prefix = "isOriginalPrice")
	private Condition<Boolean> isOriginalPriceCondition;

    /** 精选 0 :否；1：是查询条件 */
	@JsonUnwrapped(prefix = "isChoiceness")
	private Condition<Boolean> isChoicenessCondition;

    /** 是否推荐 0:不推荐 1:推荐查询条件 */
	@JsonUnwrapped(prefix = "isRecommend")
	private Condition<Integer> isRecommendCondition;

    /** 首页展示0 :否；1：是查询条件 */
	@JsonUnwrapped(prefix = "showMain")
	private Condition<Boolean> showMainCondition;

    /** 使用规则查询条件 */
	@JsonUnwrapped(prefix = "remarks")
	private Condition<String> remarksCondition;

    /** 排序查询条件 */
	@JsonUnwrapped(prefix = "sort")
	private Condition<Integer> sortCondition;

    /** 是否过期:0:否 1:是查询条件 */
	@JsonUnwrapped(prefix = "isExpire")
	private Condition<Boolean> isExpireCondition;

    /** [枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件 */
	@JsonUnwrapped(prefix = "checkStatus")
	private Condition<GrouponInfoCheckStatus> checkStatusCondition;

    /** 审核时间查询条件 */
	@JsonUnwrapped(prefix = "checkTime")
	private Condition<LocalDateTime> checkTimeCondition;

    /** 审核备注查询条件 */
	@JsonUnwrapped(prefix = "checkReason")
	private Condition<String> checkReasonCondition;

    /** 浏览次数查询条件 */
	@JsonUnwrapped(prefix = "views")
	private Condition<Integer> viewsCondition;

    /** 分享次数查询条件 */
	@JsonUnwrapped(prefix = "shareNum")
	private Condition<Integer> shareNumCondition;

    /** [枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件 */
	@JsonUnwrapped(prefix = "status")
	private Condition<GrouponInfoStatus> statusCondition;

    /** 创建人ID查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 更新人ID查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 更新时间查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 逻辑删除，1表示已删除,0表示未删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 删除人ID查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 删除时间查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public GrouponInfoQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public GrouponInfoQuery(GrouponInfoEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public GrouponInfoQuery(GrouponInfoQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.nameCondition != null) {
			this.nameCondition = other.nameCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.merchantIdCondition != null) {
			this.merchantIdCondition = other.merchantIdCondition.copy();
		}
		if(other.releaseTypeCondition != null) {
			this.releaseTypeCondition = other.releaseTypeCondition.copy();
		}
		if(other.spuIdCondition != null) {
			this.spuIdCondition = other.spuIdCondition.copy();
		}
		if(other.skuIdCondition != null) {
			this.skuIdCondition = other.skuIdCondition.copy();
		}
		if(other.imgsCondition != null) {
			this.imgsCondition = other.imgsCondition.copy();
		}
		if(other.grouponPriceCondition != null) {
			this.grouponPriceCondition = other.grouponPriceCondition.copy();
		}
		if(other.grouponNumCondition != null) {
			this.grouponNumCondition = other.grouponNumCondition.copy();
		}
		if(other.grouponStockCondition != null) {
			this.grouponStockCondition = other.grouponStockCondition.copy();
		}
		if(other.maxBuyCondition != null) {
			this.maxBuyCondition = other.maxBuyCondition.copy();
		}
		if(other.viewBeginTimeCondition != null) {
			this.viewBeginTimeCondition = other.viewBeginTimeCondition.copy();
		}
		if(other.viewEndTimeCondition != null) {
			this.viewEndTimeCondition = other.viewEndTimeCondition.copy();
		}
		this.setOther(other);
	}

	private void setOther(GrouponInfoQuery other) {
		if (other.beginDateCondition != null) {
			this.beginDateCondition = other.beginDateCondition.copy();
		}
		if (other.endDateCondition != null) {
			this.endDateCondition = other.endDateCondition.copy();
		}
		if (other.isOriginalPriceCondition != null) {
			this.isOriginalPriceCondition = other.isOriginalPriceCondition.copy();
		}
		if (other.isChoicenessCondition != null) {
			this.isChoicenessCondition = other.isChoicenessCondition.copy();
		}
		if (other.isRecommendCondition != null) {
			this.isRecommendCondition = other.isRecommendCondition.copy();
		}
		if (other.showMainCondition != null) {
			this.showMainCondition = other.showMainCondition.copy();
		}
		if (other.remarksCondition != null) {
			this.remarksCondition = other.remarksCondition.copy();
		}
		if (other.sortCondition != null) {
			this.sortCondition = other.sortCondition.copy();
		}
		if (other.isExpireCondition != null) {
			this.isExpireCondition = other.isExpireCondition.copy();
		}
		if (other.checkStatusCondition != null) {
			this.checkStatusCondition = other.checkStatusCondition.copy();
		}
		if (other.checkTimeCondition != null) {
			this.checkTimeCondition = other.checkTimeCondition.copy();
		}
		if (other.checkReasonCondition != null) {
			this.checkReasonCondition = other.checkReasonCondition.copy();
		}
		if (other.viewsCondition != null) {
			this.viewsCondition = other.viewsCondition.copy();
		}
		if (other.shareNumCondition != null) {
			this.shareNumCondition = other.shareNumCondition.copy();
		}
		this.setOther2(other);
	}

	private void setOther2(GrouponInfoQuery other){
		if(other.statusCondition != null) {
			this.statusCondition = other.statusCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<GrouponInfoEntity> toQueryWrapper() {
		QueryWrapper<GrouponInfoEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (nameCondition != null) {
			nameCondition.toWrapper(wrapper, COL_NAME);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (merchantIdCondition != null) {
			merchantIdCondition.toWrapper(wrapper, COL_MERCHANT_ID);
		}
		if (releaseTypeCondition != null) {
			releaseTypeCondition.toWrapper(wrapper, COL_RELEASE_TYPE);
		}
		if (spuIdCondition != null) {
			spuIdCondition.toWrapper(wrapper, COL_SPU_ID);
		}
		if (skuIdCondition != null) {
			skuIdCondition.toWrapper(wrapper, COL_SKU_ID);
		}
		if (imgsCondition != null) {
			imgsCondition.toWrapper(wrapper, COL_IMGS);
		}
		if (grouponPriceCondition != null) {
			grouponPriceCondition.toWrapper(wrapper, COL_GROUPON_PRICE);
		}
		if (grouponNumCondition != null) {
			grouponNumCondition.toWrapper(wrapper, COL_GROUPON_NUM);
		}
		if (grouponStockCondition != null) {
			grouponStockCondition.toWrapper(wrapper, COL_GROUPON_STOCK);
		}
		if (maxBuyCondition != null) {
			maxBuyCondition.toWrapper(wrapper, COL_MAX_BUY);
		}
		if (viewBeginTimeCondition != null) {
			viewBeginTimeCondition.toWrapper(wrapper, COL_VIEW_BEGIN_TIME);
		}
		if (viewEndTimeCondition != null) {
			viewEndTimeCondition.toWrapper(wrapper, COL_VIEW_END_TIME);
		}
		return getQueryWrapper(wrapper);
	}

	private QueryWrapper<GrouponInfoEntity> getQueryWrapper(QueryWrapper<GrouponInfoEntity> wrapper){
		if (beginDateCondition != null) {
			beginDateCondition.toWrapper(wrapper, COL_BEGIN_DATE);
		}
		if (endDateCondition != null) {
			endDateCondition.toWrapper(wrapper, COL_END_DATE);
		}
		if (isOriginalPriceCondition != null) {
			isOriginalPriceCondition.toWrapper(wrapper, COL_IS_ORIGINAL_PRICE);
		}
		if (isChoicenessCondition != null) {
			isChoicenessCondition.toWrapper(wrapper, COL_IS_CHOICENESS);
		}
		if (isRecommendCondition != null) {
			isRecommendCondition.toWrapper(wrapper, COL_IS_RECOMMEND);
		}
		if (showMainCondition != null) {
			showMainCondition.toWrapper(wrapper, COL_SHOW_MAIN);
		}
		if (remarksCondition != null) {
			remarksCondition.toWrapper(wrapper, COL_REMARKS);
		}
		if (sortCondition != null) {
			sortCondition.toWrapper(wrapper, COL_SORT);
		}
		if (isExpireCondition != null) {
			isExpireCondition.toWrapper(wrapper, COL_IS_EXPIRE);
		}
		if (checkStatusCondition != null) {
			checkStatusCondition.toWrapper(wrapper, COL_CHECK_STATUS);
		}
		if (checkTimeCondition != null) {
			checkTimeCondition.toWrapper(wrapper, COL_CHECK_TIME);
		}
		if (checkReasonCondition != null) {
			checkReasonCondition.toWrapper(wrapper, COL_CHECK_REASON);
		}
		if (viewsCondition != null) {
			viewsCondition.toWrapper(wrapper, COL_VIEWS);
		}
		if (shareNumCondition != null) {
			shareNumCondition.toWrapper(wrapper, COL_SHARE_NUM);
		}
		return getQueryWrapper2(wrapper);
	}

	private QueryWrapper<GrouponInfoEntity> getQueryWrapper2(QueryWrapper<GrouponInfoEntity> wrapper){
		if (statusCondition != null) {
			statusCondition.toWrapper(wrapper, COL_STATUS);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回主键ID查询条件
	 * 
	 * @return idCondition 主键ID查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取主键ID查询条件
	 * 
	 * @return idCondition 主键ID查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置主键ID查询条件
	 * 
	 * @param idCondition 主键ID查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回活动名称查询条件
	 * 
	 * @return nameCondition 活动名称查询条件
	 */
	public Condition<String> name() {
		this.nameCondition = new Condition<>();
		return this.nameCondition;
	}
	
	/**
	 * 获取活动名称查询条件
	 * 
	 * @return nameCondition 活动名称查询条件
	 */
	public Condition<String> getNameCondition() {
		return nameCondition;
	}

	/**
	 * 设置活动名称查询条件
	 * 
	 * @param nameCondition 活动名称查询条件
	 */
	public void setNameCondition(Condition<String> nameCondition) {
		this.nameCondition = nameCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回商户ID查询条件
	 * 
	 * @return merchantIdCondition 商户ID查询条件
	 */
	public Condition<String> merchantId() {
		this.merchantIdCondition = new Condition<>();
		return this.merchantIdCondition;
	}
	
	/**
	 * 获取商户ID查询条件
	 * 
	 * @return merchantIdCondition 商户ID查询条件
	 */
	public Condition<String> getMerchantIdCondition() {
		return merchantIdCondition;
	}

	/**
	 * 设置商户ID查询条件
	 * 
	 * @param merchantIdCondition 商户ID查询条件
	 */
	public void setMerchantIdCondition(Condition<String> merchantIdCondition) {
		this.merchantIdCondition = merchantIdCondition;
	}

	/**
	 * 构造并返回[枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件
	 * 
	 * @return releaseTypeCondition [枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件
	 */
	public Condition<GrouponInfoReleaseType> releaseType() {
		this.releaseTypeCondition = new Condition<>();
		return this.releaseTypeCondition;
	}
	
	/**
	 * 获取[枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件
	 * 
	 * @return releaseTypeCondition [枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件
	 */
	public Condition<GrouponInfoReleaseType> getReleaseTypeCondition() {
		return releaseTypeCondition;
	}

	/**
	 * 设置[枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件
	 * 
	 * @param releaseTypeCondition [枚举]发布类型：0-商圈-BUSD、1-商户-MERCHANT查询条件
	 */
	public void setReleaseTypeCondition(Condition<GrouponInfoReleaseType> releaseTypeCondition) {
		this.releaseTypeCondition = releaseTypeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return spuIdCondition 查询条件
	 */
	public Condition<String> spuId() {
		this.spuIdCondition = new Condition<>();
		return this.spuIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return spuIdCondition 查询条件
	 */
	public Condition<String> getSpuIdCondition() {
		return spuIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param spuIdCondition 查询条件
	 */
	public void setSpuIdCondition(Condition<String> spuIdCondition) {
		this.spuIdCondition = spuIdCondition;
	}

	/**
	 * 构造并返回拼团skuID查询条件
	 * 
	 * @return skuIdCondition 拼团skuID查询条件
	 */
	public Condition<String> skuId() {
		this.skuIdCondition = new Condition<>();
		return this.skuIdCondition;
	}
	
	/**
	 * 获取拼团skuID查询条件
	 * 
	 * @return skuIdCondition 拼团skuID查询条件
	 */
	public Condition<String> getSkuIdCondition() {
		return skuIdCondition;
	}

	/**
	 * 设置拼团skuID查询条件
	 * 
	 * @param skuIdCondition 拼团skuID查询条件
	 */
	public void setSkuIdCondition(Condition<String> skuIdCondition) {
		this.skuIdCondition = skuIdCondition;
	}

	/**
	 * 构造并返回活动主图片查询条件
	 * 
	 * @return imgsCondition 活动主图片查询条件
	 */
	public Condition<String> imgs() {
		this.imgsCondition = new Condition<>();
		return this.imgsCondition;
	}
	
	/**
	 * 获取活动主图片查询条件
	 * 
	 * @return imgsCondition 活动主图片查询条件
	 */
	public Condition<String> getImgsCondition() {
		return imgsCondition;
	}

	/**
	 * 设置活动主图片查询条件
	 * 
	 * @param imgsCondition 活动主图片查询条件
	 */
	public void setImgsCondition(Condition<String> imgsCondition) {
		this.imgsCondition = imgsCondition;
	}

	/**
	 * 构造并返回拼团价查询条件
	 * 
	 * @return grouponPriceCondition 拼团价查询条件
	 */
	public Condition<BigDecimal> grouponPrice() {
		this.grouponPriceCondition = new Condition<>();
		return this.grouponPriceCondition;
	}
	
	/**
	 * 获取拼团价查询条件
	 * 
	 * @return grouponPriceCondition 拼团价查询条件
	 */
	public Condition<BigDecimal> getGrouponPriceCondition() {
		return grouponPriceCondition;
	}

	/**
	 * 设置拼团价查询条件
	 * 
	 * @param grouponPriceCondition 拼团价查询条件
	 */
	public void setGrouponPriceCondition(Condition<BigDecimal> grouponPriceCondition) {
		this.grouponPriceCondition = grouponPriceCondition;
	}

	/**
	 * 构造并返回成团人数查询条件
	 * 
	 * @return grouponNumCondition 成团人数查询条件
	 */
	public Condition<Integer> grouponNum() {
		this.grouponNumCondition = new Condition<>();
		return this.grouponNumCondition;
	}
	
	/**
	 * 获取成团人数查询条件
	 * 
	 * @return grouponNumCondition 成团人数查询条件
	 */
	public Condition<Integer> getGrouponNumCondition() {
		return grouponNumCondition;
	}

	/**
	 * 设置成团人数查询条件
	 * 
	 * @param grouponNumCondition 成团人数查询条件
	 */
	public void setGrouponNumCondition(Condition<Integer> grouponNumCondition) {
		this.grouponNumCondition = grouponNumCondition;
	}

	/**
	 * 构造并返回活动库存查询条件
	 * 
	 * @return grouponStockCondition 活动库存查询条件
	 */
	public Condition<Integer> grouponStock() {
		this.grouponStockCondition = new Condition<>();
		return this.grouponStockCondition;
	}
	
	/**
	 * 获取活动库存查询条件
	 * 
	 * @return grouponStockCondition 活动库存查询条件
	 */
	public Condition<Integer> getGrouponStockCondition() {
		return grouponStockCondition;
	}

	/**
	 * 设置活动库存查询条件
	 * 
	 * @param grouponStockCondition 活动库存查询条件
	 */
	public void setGrouponStockCondition(Condition<Integer> grouponStockCondition) {
		this.grouponStockCondition = grouponStockCondition;
	}

	/**
	 * 构造并返回最大购买数量查询条件
	 * 
	 * @return maxBuyCondition 最大购买数量查询条件
	 */
	public Condition<Integer> maxBuy() {
		this.maxBuyCondition = new Condition<>();
		return this.maxBuyCondition;
	}
	
	/**
	 * 获取最大购买数量查询条件
	 * 
	 * @return maxBuyCondition 最大购买数量查询条件
	 */
	public Condition<Integer> getMaxBuyCondition() {
		return maxBuyCondition;
	}

	/**
	 * 设置最大购买数量查询条件
	 * 
	 * @param maxBuyCondition 最大购买数量查询条件
	 */
	public void setMaxBuyCondition(Condition<Integer> maxBuyCondition) {
		this.maxBuyCondition = maxBuyCondition;
	}

	/**
	 * 构造并返回展示开始时间查询条件
	 * 
	 * @return viewBeginTimeCondition 展示开始时间查询条件
	 */
	public Condition<LocalDateTime> viewBeginTime() {
		this.viewBeginTimeCondition = new Condition<>();
		return this.viewBeginTimeCondition;
	}
	
	/**
	 * 获取展示开始时间查询条件
	 * 
	 * @return viewBeginTimeCondition 展示开始时间查询条件
	 */
	public Condition<LocalDateTime> getViewBeginTimeCondition() {
		return viewBeginTimeCondition;
	}

	/**
	 * 设置展示开始时间查询条件
	 * 
	 * @param viewBeginTimeCondition 展示开始时间查询条件
	 */
	public void setViewBeginTimeCondition(Condition<LocalDateTime> viewBeginTimeCondition) {
		this.viewBeginTimeCondition = viewBeginTimeCondition;
	}

	/**
	 * 构造并返回展示结束时间查询条件
	 * 
	 * @return viewEndTimeCondition 展示结束时间查询条件
	 */
	public Condition<LocalDateTime> viewEndTime() {
		this.viewEndTimeCondition = new Condition<>();
		return this.viewEndTimeCondition;
	}
	
	/**
	 * 获取展示结束时间查询条件
	 * 
	 * @return viewEndTimeCondition 展示结束时间查询条件
	 */
	public Condition<LocalDateTime> getViewEndTimeCondition() {
		return viewEndTimeCondition;
	}

	/**
	 * 设置展示结束时间查询条件
	 * 
	 * @param viewEndTimeCondition 展示结束时间查询条件
	 */
	public void setViewEndTimeCondition(Condition<LocalDateTime> viewEndTimeCondition) {
		this.viewEndTimeCondition = viewEndTimeCondition;
	}

	/**
	 * 构造并返回开始日期查询条件
	 * 
	 * @return beginDateCondition 开始日期查询条件
	 */
	public Condition<LocalDateTime> beginDate() {
		this.beginDateCondition = new Condition<>();
		return this.beginDateCondition;
	}
	
	/**
	 * 获取开始日期查询条件
	 * 
	 * @return beginDateCondition 开始日期查询条件
	 */
	public Condition<LocalDateTime> getBeginDateCondition() {
		return beginDateCondition;
	}

	/**
	 * 设置开始日期查询条件
	 * 
	 * @param beginDateCondition 开始日期查询条件
	 */
	public void setBeginDateCondition(Condition<LocalDateTime> beginDateCondition) {
		this.beginDateCondition = beginDateCondition;
	}

	/**
	 * 构造并返回结束日期查询条件
	 * 
	 * @return endDateCondition 结束日期查询条件
	 */
	public Condition<LocalDateTime> endDate() {
		this.endDateCondition = new Condition<>();
		return this.endDateCondition;
	}
	
	/**
	 * 获取结束日期查询条件
	 * 
	 * @return endDateCondition 结束日期查询条件
	 */
	public Condition<LocalDateTime> getEndDateCondition() {
		return endDateCondition;
	}

	/**
	 * 设置结束日期查询条件
	 * 
	 * @param endDateCondition 结束日期查询条件
	 */
	public void setEndDateCondition(Condition<LocalDateTime> endDateCondition) {
		this.endDateCondition = endDateCondition;
	}

	/**
	 * 构造并返回是否原价购买:0:否 1:是查询条件
	 * 
	 * @return isOriginalPriceCondition 是否原价购买:0:否 1:是查询条件
	 */
	public Condition<Boolean> isOriginalPrice() {
		this.isOriginalPriceCondition = new Condition<>();
		return this.isOriginalPriceCondition;
	}
	
	/**
	 * 获取是否原价购买:0:否 1:是查询条件
	 * 
	 * @return isOriginalPriceCondition 是否原价购买:0:否 1:是查询条件
	 */
	public Condition<Boolean> getIsOriginalPriceCondition() {
		return isOriginalPriceCondition;
	}

	/**
	 * 设置是否原价购买:0:否 1:是查询条件
	 * 
	 * @param isOriginalPriceCondition 是否原价购买:0:否 1:是查询条件
	 */
	public void setIsOriginalPriceCondition(Condition<Boolean> isOriginalPriceCondition) {
		this.isOriginalPriceCondition = isOriginalPriceCondition;
	}

	/**
	 * 构造并返回精选 0 :否；1：是查询条件
	 * 
	 * @return isChoicenessCondition 精选 0 :否；1：是查询条件
	 */
	public Condition<Boolean> isChoiceness() {
		this.isChoicenessCondition = new Condition<>();
		return this.isChoicenessCondition;
	}
	
	/**
	 * 获取精选 0 :否；1：是查询条件
	 * 
	 * @return isChoicenessCondition 精选 0 :否；1：是查询条件
	 */
	public Condition<Boolean> getIsChoicenessCondition() {
		return isChoicenessCondition;
	}

	/**
	 * 设置精选 0 :否；1：是查询条件
	 * 
	 * @param isChoicenessCondition 精选 0 :否；1：是查询条件
	 */
	public void setIsChoicenessCondition(Condition<Boolean> isChoicenessCondition) {
		this.isChoicenessCondition = isChoicenessCondition;
	}

	/**
	 * 构造并返回是否推荐 0:不推荐 1:推荐查询条件
	 * 
	 * @return isRecommendCondition 是否推荐 0:不推荐 1:推荐查询条件
	 */
	public Condition<Integer> isRecommend() {
		this.isRecommendCondition = new Condition<>();
		return this.isRecommendCondition;
	}
	
	/**
	 * 获取是否推荐 0:不推荐 1:推荐查询条件
	 * 
	 * @return isRecommendCondition 是否推荐 0:不推荐 1:推荐查询条件
	 */
	public Condition<Integer> getIsRecommendCondition() {
		return isRecommendCondition;
	}

	/**
	 * 设置是否推荐 0:不推荐 1:推荐查询条件
	 * 
	 * @param isRecommendCondition 是否推荐 0:不推荐 1:推荐查询条件
	 */
	public void setIsRecommendCondition(Condition<Integer> isRecommendCondition) {
		this.isRecommendCondition = isRecommendCondition;
	}

	/**
	 * 构造并返回首页展示0 :否；1：是查询条件
	 * 
	 * @return showMainCondition 首页展示0 :否；1：是查询条件
	 */
	public Condition<Boolean> showMain() {
		this.showMainCondition = new Condition<>();
		return this.showMainCondition;
	}
	
	/**
	 * 获取首页展示0 :否；1：是查询条件
	 * 
	 * @return showMainCondition 首页展示0 :否；1：是查询条件
	 */
	public Condition<Boolean> getShowMainCondition() {
		return showMainCondition;
	}

	/**
	 * 设置首页展示0 :否；1：是查询条件
	 * 
	 * @param showMainCondition 首页展示0 :否；1：是查询条件
	 */
	public void setShowMainCondition(Condition<Boolean> showMainCondition) {
		this.showMainCondition = showMainCondition;
	}

	/**
	 * 构造并返回使用规则查询条件
	 * 
	 * @return remarksCondition 使用规则查询条件
	 */
	public Condition<String> remarks() {
		this.remarksCondition = new Condition<>();
		return this.remarksCondition;
	}
	
	/**
	 * 获取使用规则查询条件
	 * 
	 * @return remarksCondition 使用规则查询条件
	 */
	public Condition<String> getRemarksCondition() {
		return remarksCondition;
	}

	/**
	 * 设置使用规则查询条件
	 * 
	 * @param remarksCondition 使用规则查询条件
	 */
	public void setRemarksCondition(Condition<String> remarksCondition) {
		this.remarksCondition = remarksCondition;
	}

	/**
	 * 构造并返回排序查询条件
	 * 
	 * @return sortCondition 排序查询条件
	 */
	public Condition<Integer> sort() {
		this.sortCondition = new Condition<>();
		return this.sortCondition;
	}
	
	/**
	 * 获取排序查询条件
	 * 
	 * @return sortCondition 排序查询条件
	 */
	public Condition<Integer> getSortCondition() {
		return sortCondition;
	}

	/**
	 * 设置排序查询条件
	 * 
	 * @param sortCondition 排序查询条件
	 */
	public void setSortCondition(Condition<Integer> sortCondition) {
		this.sortCondition = sortCondition;
	}

	/**
	 * 构造并返回是否过期:0:否 1:是查询条件
	 * 
	 * @return isExpireCondition 是否过期:0:否 1:是查询条件
	 */
	public Condition<Boolean> isExpire() {
		this.isExpireCondition = new Condition<>();
		return this.isExpireCondition;
	}
	
	/**
	 * 获取是否过期:0:否 1:是查询条件
	 * 
	 * @return isExpireCondition 是否过期:0:否 1:是查询条件
	 */
	public Condition<Boolean> getIsExpireCondition() {
		return isExpireCondition;
	}

	/**
	 * 设置是否过期:0:否 1:是查询条件
	 * 
	 * @param isExpireCondition 是否过期:0:否 1:是查询条件
	 */
	public void setIsExpireCondition(Condition<Boolean> isExpireCondition) {
		this.isExpireCondition = isExpireCondition;
	}

	/**
	 * 构造并返回[枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件
	 * 
	 * @return checkStatusCondition [枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件
	 */
	public Condition<GrouponInfoCheckStatus> checkStatus() {
		this.checkStatusCondition = new Condition<>();
		return this.checkStatusCondition;
	}
	
	/**
	 * 获取[枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件
	 * 
	 * @return checkStatusCondition [枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件
	 */
	public Condition<GrouponInfoCheckStatus> getCheckStatusCondition() {
		return checkStatusCondition;
	}

	/**
	 * 设置[枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件
	 * 
	 * @param checkStatusCondition [枚举]审核状态：0-待提交-SUBMIT、1-审核中-CHECKING、2-审核通过-THROUGH、3-审核未通过-NOTHROUGH查询条件
	 */
	public void setCheckStatusCondition(Condition<GrouponInfoCheckStatus> checkStatusCondition) {
		this.checkStatusCondition = checkStatusCondition;
	}

	/**
	 * 构造并返回审核时间查询条件
	 * 
	 * @return checkTimeCondition 审核时间查询条件
	 */
	public Condition<LocalDateTime> checkTime() {
		this.checkTimeCondition = new Condition<>();
		return this.checkTimeCondition;
	}
	
	/**
	 * 获取审核时间查询条件
	 * 
	 * @return checkTimeCondition 审核时间查询条件
	 */
	public Condition<LocalDateTime> getCheckTimeCondition() {
		return checkTimeCondition;
	}

	/**
	 * 设置审核时间查询条件
	 * 
	 * @param checkTimeCondition 审核时间查询条件
	 */
	public void setCheckTimeCondition(Condition<LocalDateTime> checkTimeCondition) {
		this.checkTimeCondition = checkTimeCondition;
	}

	/**
	 * 构造并返回审核备注查询条件
	 * 
	 * @return checkReasonCondition 审核备注查询条件
	 */
	public Condition<String> checkReason() {
		this.checkReasonCondition = new Condition<>();
		return this.checkReasonCondition;
	}
	
	/**
	 * 获取审核备注查询条件
	 * 
	 * @return checkReasonCondition 审核备注查询条件
	 */
	public Condition<String> getCheckReasonCondition() {
		return checkReasonCondition;
	}

	/**
	 * 设置审核备注查询条件
	 * 
	 * @param checkReasonCondition 审核备注查询条件
	 */
	public void setCheckReasonCondition(Condition<String> checkReasonCondition) {
		this.checkReasonCondition = checkReasonCondition;
	}

	/**
	 * 构造并返回浏览次数查询条件
	 * 
	 * @return viewsCondition 浏览次数查询条件
	 */
	public Condition<Integer> views() {
		this.viewsCondition = new Condition<>();
		return this.viewsCondition;
	}
	
	/**
	 * 获取浏览次数查询条件
	 * 
	 * @return viewsCondition 浏览次数查询条件
	 */
	public Condition<Integer> getViewsCondition() {
		return viewsCondition;
	}

	/**
	 * 设置浏览次数查询条件
	 * 
	 * @param viewsCondition 浏览次数查询条件
	 */
	public void setViewsCondition(Condition<Integer> viewsCondition) {
		this.viewsCondition = viewsCondition;
	}

	/**
	 * 构造并返回分享次数查询条件
	 * 
	 * @return shareNumCondition 分享次数查询条件
	 */
	public Condition<Integer> shareNum() {
		this.shareNumCondition = new Condition<>();
		return this.shareNumCondition;
	}
	
	/**
	 * 获取分享次数查询条件
	 * 
	 * @return shareNumCondition 分享次数查询条件
	 */
	public Condition<Integer> getShareNumCondition() {
		return shareNumCondition;
	}

	/**
	 * 设置分享次数查询条件
	 * 
	 * @param shareNumCondition 分享次数查询条件
	 */
	public void setShareNumCondition(Condition<Integer> shareNumCondition) {
		this.shareNumCondition = shareNumCondition;
	}

	/**
	 * 构造并返回[枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件
	 * 
	 * @return statusCondition [枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件
	 */
	public Condition<GrouponInfoStatus> status() {
		this.statusCondition = new Condition<>();
		return this.statusCondition;
	}
	
	/**
	 * 获取[枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件
	 * 
	 * @return statusCondition [枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件
	 */
	public Condition<GrouponInfoStatus> getStatusCondition() {
		return statusCondition;
	}

	/**
	 * 设置[枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件
	 * 
	 * @param statusCondition [枚举]状态：0-下架-OFFLINE、1-上架-ONLINE查询条件
	 */
	public void setStatusCondition(Condition<GrouponInfoStatus> statusCondition) {
		this.statusCondition = statusCondition;
	}

	/**
	 * 构造并返回创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置创建人ID查询条件
	 * 
	 * @param createdByCondition 创建人ID查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置更新人ID查询条件
	 * 
	 * @param modifiedByCondition 更新人ID查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置更新时间查询条件
	 * 
	 * @param modifiedTimeCondition 更新时间查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @param delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回删除人ID查询条件
	 * 
	 * @return delByCondition 删除人ID查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取删除人ID查询条件
	 * 
	 * @return delByCondition 删除人ID查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置删除人ID查询条件
	 * 
	 * @param delByCondition 删除人ID查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置删除时间查询条件
	 * 
	 * @param delTimeCondition 删除时间查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

}
